package org.exhaust.framework.net.test.protocol.server.udp;

import io.netty.buffer.ByteBuf;
import org.exhaust.framework.net.common.protocol.BaseFrame;
import org.exhaust.framework.net.common.protocol.FrameHeader;

public abstract class AbstractClientMsg extends BaseFrame {

    @Override
    protected void encodeData(ByteBuf out) {
    }

    public abstract short getCmdType();

    @Override
    public void decode(ByteBuf in, FrameHeader header) {
        this.decodeBody(in, header);
    }

    protected abstract void decodeBody(ByteBuf in, FrameHeader header);
}
